<div class="top-bar">
  <h1>New event</h1>
  <div class="breadcrumbs">
    <a href="/events">events</a> /
    New 
  </div>
</div>

<form action="/events" method="post">
<% if included_error_message?([@event])  %>
<div class="msg_validation"><%= put_error_messages([@event]) %></div>
<% end %>
<input type="hidden" name="csv" value="<%= h @csv %>" />
<div class="table">
  <img src="/images/adminpage/bg-th-left.gif" width="8" height="7" alt="" class="left" />
  <img src="/images/adminpage/bg-th-right.gif" width="7" height="7" alt="" class="right" />
  <!--[form:command]-->
  <table class="listing form" cellpadding="0" cellspacing="0">
    <tr>
      <th class="full" colspan="2">New</th>
    </tr>
    <tr class="bg" >
      <td class="first" width="172"><strong>イベント名</strong></td>
      <td class="last"><input type="text" name="name" value="<%=h @event.name %>"></td>
    </tr>
    <tr class="bg" >
      <td class="first" width="172"><strong>参加者の氏名列</strong></td>
      <td class="last"><select name="name_column"><%= options_for_select(@header, -1) %></select></td>
    </tr>
    <tr class="bg" >
      <td class="first" width="172"><strong>参加者のメールアドレス列</strong></td>
      <td class="last"><select name="mail_column"><%= options_for_select(@header, -1) %></select></td>
    </tr>
    <tr class="bg" >
      <td class="first" width="172"><strong>参加者の番号列</strong></td>
      <td class="last"><select name="number_column"><%= options_for_select(@header, -1) %></select></td>
    </tr>
    <tr>
      <td class="full" colspan="2" align="center"><input type="submit" value="この条件でCSVを解析する" /> | <a href="/events/new">Back</a></td>
    </tr>
  </table>
  <!--[eoform:command]-->
  <p>&nbsp;</p>
</div>                　
</form>
